package cn.edu.quartz;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * @author Mr.ma
 * @since 2022/11/18 18:28
 **/
@Component
public class QuartzTest {
    @Scheduled(cron = "0 0 23 * * ?")
    public void scheduledTest(){
        LocalDateTime now = LocalDateTime.now();
        System.out.println("定时输出时间：" + now);
    }
}
